package day08;

import java.util.Random;
import java.util.Scanner;

public class LianXi {
    public static void main(String[] args) {
        int[]b= arr(5,500);
        for(int i=0;i< b.length;i++){
            System.out.println(b[i]);
        }
    }
    public static int[] arr(int x,int y){
        int []a=new int[x];
        for (int i=0;i< a.length;i++){
            a[i]=(int)(Math.random()*(y+1));
        }
        return a;
    }

}
